home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
cuj9303.zip
/
1103092A
< prev
next >
Wrap
Text File
|
1993-06-21
|
794b
|
30 lines
int SomeFunc(void)
{
char *buf1, *buf2, *buf3;
int ccode;
if ((buf1 = malloc(1024)) == NULL)
{
ccode = -1;
goto End1;
}
if ((buf2 = malloc(1024)) == NULL)
{
ccode = -1;
goto End2;
}
if ((buf3 = malloc(1024)) == NULL)
{
ccode = -1;
goto End3;
}
// More code here
End3:
free(buf3);
End2:
free(buf2);
End1:
free(buf1);
return(ccode);
}